home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-11 | 1.6 KB | 55 lines | [TEXT/GEOL] |
- Item 1037317 9-May-90 22:40PDT
-
- From: D3632 Cadence Design, Ken Friedenbach,PRT
-
- To: V0683 Amoco Tech, Eric Berdahl,VAR
- MACAPP.TECH$ MacApp Technical
-
- cc: CPLUS.APPLE$ C++ Interest List--Apple Employees
- CPLUS.DEV$ C++ Interest List--Developers
-
- Sub: Re[N] What's in Main?
-
- Dear Eric, et. al.
-
- In response to your question:
-
- > What needs to be in Main?
- > I have put nothing into Main. Every one
- > of my methods is in ARes, ANonRes, etc.
- > Nothing uses Main. However, Main is too full,
- > procedures are being linked past the jump table
- > 32K limit. I need to take some of the default
- > stuff out of Main and put it elsewhere.
-
- One way to blow Main without putting any code in,
- is to use Stream I/O to write to the Debug window,
- or to a file or string.
-
- For instance:
-
- cout << "My Program of 12th of Never.\n" << flush;
-
- inside of IdentifySoftware will do it. Segment Main
- will be too big, even if the application is "Nothing".
-
- I have been telling my students in C++ classes to
- resegment the C++ support library into another resident
- segement. For instance, the following instructions:
-
- # Set directory to C Libraries folder
- Directory "{CLibraries}"
- # Make a copy of the CPlusLib.o
- Move CPlusLib.o CPlusLib.o.temp
- # Use Lib utility to map Main segment stuff to ARes
- Lib -sn Main=ARes -o CPlusLib.o CPlusLib.o.temp
-
- will create a CPlusLib.o with all code that was in Main in ARes.
-
- This seems to solve the problem.
-
- Hope this helps,
-
- Ken
-
-